// 爷爷组件
import BaseCard from './BaseCard'

const YeComponent = {
  template: `<base-card :disabled="disabled" :type="type" :readonly="readonly" @yeChange="onYeChange" @yeInput="onYeInput"></base-card>`,
  components: {
    'base-card': BaseCard
  },
  data() {
    return {
      disabled: false,
      type: '',
      readonly: false,
    }
  },
  methods: {
    onYeChange(v) {
      console.log('孙子组件调用了爷爷组件的yeChange事件，还传了值：', v)
    },
    onYeInput(v) {
      console.log('孙子组件调用了爷爷组件的yeInput事件，还传了值：', v)
    }
  }
}

export default YeComponent
